﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Pessoa.ascx.cs" Inherits=" RzCorportativo.Views.Pessoa" %>

<%@ Register TagPrefix="rz" TagName="Endereco" Src="~/Views/Endereco.ascx" %>

<script>
    jQuery(function () {
        jQuery(".fileinput-preview").html(jQuery("<img />").attr("src", "<%=ObterFoto()%>"));
    });
</script>

<div class="controls controls-row">
    <div class="fileinput fileinput-new" data-provides="fileinput">
        <div class="fileinput-preview thumbnail" data-trigger="fileinput" style="width: 200px; height: 150px;"></div>
        <div>
            <span class="btn btn-default btn-file"><span class="fileinput-new">Selecione a imagem</span>
            <span class="fileinput-exists">Alterar</span><input type="file" name="foto" runat="server" accept="image/x-png, image/gif, image/jpeg" id="Foto"></span>
            <a href="#" class="btn btn-default fileinput-exists" data-dismiss="fileinput">Remover</a>
        </div>
    </div>
</div>

<div class="controls controls-row">
    <asp:TextBox runat="server" ID="Cpf" mask="cpf" placeholder="CPF" />
    <%--<asp:TextBox runat="server" ID="CartaoSUS" mask="number" range="10" placeholder="Carteira SUS" />--%>
</div>
<div class="controls controls-row">
    <asp:TextBox runat="server" ID="Nome" placeholder="Nome" data-toggle="tooltip" title="Nome" data-placement="left" />
    <asp:TextBox runat="server" ID="DataNascimento" date="true" mask="calendar" placeholder="Data de Nascimento" data-toggle="tooltip" title="Data de nascimento" data-placement="left" />
</div>
<div class="controls controls-row">
    <asp:DropDownList runat="server" ID="Sexo" Width="260" data-toggle="tooltip" title="Sexo" data-placement="left">
        <asp:ListItem Text="Sexo" Value="" />
        <asp:ListItem Text="Feminino" Value="F" />
        <asp:ListItem Text="Masculino" Value="M" />
        <asp:ListItem Text="Empresa" Value="E" />
    </asp:DropDownList>
    <asp:DropDownList runat="server" ID="Ativo" Width="260" data-toggle="tooltip" title="Status" data-placement="left">
        <asp:ListItem Text="Status" Value="" />
        <asp:ListItem Text="Ativo" Value="1" />
        <asp:ListItem Text="Inativo" Value="0" />
    </asp:DropDownList>
</div>
<div class="controls controls-row">
    <asp:TextBox runat="server" ID="Telefone" mask="telefone" placeholder="Telefone" data-toggle="tooltip" title="Telefone" data-placement="left" />
    <asp:TextBox runat="server" ID="Email" placeholder="E-mail" data-toggle="tooltip" title="E-mail" data-placement="left" />
</div>
<div style="visibility: hidden; display: none">
    <asp:TextBox runat="server" ID="Codigo" type="hidden" />
</div>
<rz:Endereco runat="server" ID="endereco" />
